<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
	<div class="ibox-content" style="clear: none;">
		<div class="jqGrid_wrapper">
			<table id="table_list_1"></table>
			<div id="pager_list_1"></div>
		</div>
	</div>
	
	<%@include file="/jsp/comm_js_include.jsp"%>
	<script type="text/javascript">
	var koukuanGetData = function(){
 		var winWidth1 = $("#table_list_1").parent('div.ibox-content').width();
        var winHeight1 = document.body.offsetHeight - 450;
     	var win = winWidth / 7 - 20;
 	    $.jgrid.defaults.styleUI = 'Bootstrap';
 	    var data={};
 	    data.orderSql="date_trade";
 	    data.busiId=$("#busiId").val();
		$("#table_list_1").jqGrid({
			show:false,
			url:'${basePath}/DhOverdueListHistoryController/queryDueList',
			postData:data,
	       	datatype : "json",
		    colNames : ['客户姓名','期号','身份证号', '月还款额','签约贷款额', '持卡人手续费','月还款额', '剩余金额', '卡余额','连续违约次数','累计违约次数'],
		    colModel : [ 
	             {name: 'cusName',index: 'cusName',width: win,align: "center",sorttype: "float"},
	             {name: 'issue',index: 'issue',width: win,align: "center",sorttype: "float"},
	             {name: 'cusIdno',index: 'cusIdno',width: win,align: "center",sorttype: "float"},
	             {name: 'amountMonthly',index: 'amountMonthly',width: win,align: "center",sorttype: "float"},
	             {name: 'loanAmount',index: 'loanAmount',width: win,align: "center",sorttype: "float"},
	             {name: 'feeTotal',index: 'feeTotal',width: win,align: "center",sorttype: "float"},
	             {name: 'amount_monthly',index: 'amount_monthly',width: win,align: "center",sorttype: "float",hidden:true},
	             {name: 'amountRemainder',index: 'amountRemainder',width: win,align: "center",sorttype: "float"},
	             {name: 'balanceCard',index: 'balanceCard',width: win,align: "center",sorttype: "float"},
	             {name: 'overdueCountContinuous',index: 'overdueCountContinuous',width: win,align: "center",sorttype: "float"},
	             {name: 'overdueCountTotal',index: 'overdueCountTotal',width: win,align: "center",sorttype: "float"}
	             ],
	           mtype : "post",
	           height: winHeight1,
	           width:winWidth1,  
	           autowidth: false,
	           shrinkToFit: false,
	           rowNum: 15,
	            rowList: [15, 30, 45],
	           viewrecords: true,
	           pager: "#pager_list_1",
	           hidegrid: false,
	           multiselect : false,		//实现单选    multiboxonly:true   beforeSelectRow: true,
	           multiboxonly:false, 
	           altRows:true,
	           altclass:'someClass',
	           beforeSelectRow: false,
	           jsonReader: {
	                root: "result.rows",
	                page: "result.page",
	                total: "result.total",
	                records: "result.records",
	                repeatitems: false,
	                id: "replceId"
	            },
	            loadComplete:function(datas){
	          	  if (datas.flag == "100100") {
	                    //layer.msg("查询成功!", {icon: 6, time: 1000});
	                    return;
	                }
	          	  if(datas.flag == '100802') {
	  				  top.location.href = thisLoginUrl;
	  				  return;
	  			  }

	          	  layer.msg(datas.message, {icon: 2});
	            }
	      });
    }
	</script>